package com.iot08.api.service;

import com.iot08.api.vo.request.AddAdvertUserReqVO;
import com.iot08.common.entity.app.AdvertUser;
import com.iot08.common.service.base.BaseService;
import org.springframework.stereotype.Service;

/**
 * @version 1.0
 * @Description: 用户点击媒体位数据处理
 * @time: 2020/12/21 18:03
 * @author: Rock
 */
@Service
public class AdvertUserService extends BaseService<AdvertUser> {


    /**
     * @param vo
     * @time: 2020/12/21 18:57
     * @author: Rock
     * @version 1.0
     */
    public void add(AddAdvertUserReqVO vo) {
        AdvertUser advertUser = new AdvertUser();
        advertUser.setOpenid(vo.getOpenid());
        advertUser.setAdvertId(vo.getAdvertId());
        advertUser.setTime(System.currentTimeMillis());
        this.save(advertUser);
    }

}
